import request from '@/utils/request'

export function getpatchliblist (params) {
  return request({
    url: '/back/patch/list',
    method: 'post',
    data:params
  })
}

export function getpatchById (params) {
  return request({
    url: '/back/patch/getById',
    method: 'post',
    data:params
  })
}

export function setOfficial (params) {
  return request({
    url: '/back/patch/setOfficialMark',
    method: 'post',
    data:params
  })
}


export function setBlack (params) {
  return request({
    url: '/back/patch/setBlackList',
    method: 'post',
    data:params
  })
}

export function setpacthGroup (params) {
  return request({
    url: '/back/patch/setPatchGroup',
    method: 'post',
    data:params
  })
}

export function deletepatch (params) {
  return request({
    url: '/back/patch/removeById',
    method: 'post',
    data:params
  })
}

export function getpatchgrouplist (params) {
  return request({
    url: '/back/patchgroup/list',
    method: 'post',
    data:params
  })
}


export function savepatchgroup (params) {
  return request({
    url: '/back/patchgroup/saveOrUpdate',
    method: 'post',
    data:params
  })
}

export function deletepatchgroup (params) {
  return request({
    url: '/back/patchgroup/removeByIds',
    method: 'post',
    data:params
  })
}

export function getpatchupdateinfo () {
  return request({
    url: '/back/patchUpdateConfig/getById',
    method: 'post',
    data: {id:1}
  })
}

export function setpatchupdateinfo (params) {
  return request({
    url: '/back/patchUpdateConfig/saveOrUpdate',
    method: 'post',
    data: params
  })
}


export function getfilelist (params) {
  return request({
    url: '/back/filelibrary/list',
    method: 'post',
    data: params
  })
}

export function removefile (params) {
  return request({
    url: '/back/filelibrary/removeById',
    method: 'post',
    data: params
  })
}

export function savefile (params) {
  return request({
    url: '/back/filelibrary/saveOrUpdate',
    method: 'post',
    data: params
  })
}

export function deletefile (params) {
  return request({
    url: '/back/filelibrary/removeById',
    method: 'post',
    data:params
  })
}

export function searchfile (params) {
  return request({
    url: '/back/filelibrary/listWithoutPage',
    method: 'post',
    data:params
  })
}

export function setautozs (params) {
  return request({
    url: '/back/patch/setAutoOfficialMark',
    method: 'post',
    data:params
  })
}

